Fix crash on download from Navin/ZNEX miniHomer (#352)
authorKonrad Gräfe <kgraefe@users.noreply.github.com>
Thu, 23 May 2019 14:29:03 +0000 (16:29 +0200)
committertsteven4 <13596209+tsteven4@users.noreply.github.com>
Thu, 23 May 2019 14:29:03 +0000 (08:29 -0600)
This adds the options gps-utc-offset and gps-week-rollover to the
miniHomer driver. By adding them solely to the skytraq driver they were
initialized with nullptr for the miniHomer ultimately leading to a
crash.

Signed-off-by: Konrad Gräfe <konradgraefe@aol.com>
skytraq.cc

index 7eb07c0b976569b1d03cbce6d7e54716068de1b3..654d49d5ca7d949e1fe0086cfdfd6753de271cfc 100644 (file)
@@ -1491,6 +1491,14 @@ static arglist_t miniHomer_args[] = {
   { "Boat",         &opt_set_poi_boat,  "POI for Boat Symbol as lat:lng[:alt]", nullptr, ARGTYPE_STRING, "", "", nullptr },
   { "Heart",        &opt_set_poi_heart, "POI for Heart Symbol as lat:lng[:alt]", nullptr, ARGTYPE_STRING, "", "", nullptr },
   { "Bar",          &opt_set_poi_bar,   "POI for Bar Symbol as lat:lng[:alt]", nullptr, ARGTYPE_STRING, "", "", nullptr },
+  {
+    "gps-utc-offset", &opt_gps_utc_offset, "Seconds that GPS time tracks UTC (0: best guess)",
+    "0", ARGTYPE_INT, ARG_NOMINMAX, nullptr
+  },
+  {
+    "gps-week-rollover", &opt_gps_week_rollover, "GPS week rollover period we're in (-1: best guess)",
+    "-1", ARGTYPE_INT, ARG_NOMINMAX, nullptr
+  },
   ARG_TERMINATOR
 };
 /*